import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import fire_component_msg from '@feidao/web/atom/browser/fsm/fire-component-msg';
import get_exam_info from './a008';
/*
* 主组件新增按钮
*/
export default async function (fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	get_exam_info(fd);

	console.log(args[0].currentTarget.dataset);
	const t_no = args[0].currentTarget.dataset.feidaoTno;

	const param = {
		teacher_no: '',
		exam_name: fd.data.exam_name,
		exam_id: fd.data.exam_id,
		teacher_name: '',
		teacher_id: ''
	};

	fire_component_msg('zj-teacher-002', 'ec-001', param);
}